package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class ChannelHotCompany implements Serializable {

	private static final long serialVersionUID = 2474942050724058678L;

	//fields
	private java.lang.Integer id;
	private java.lang.String link;
	private java.lang.String text;
	private java.lang.String locked;
	private java.lang.String highlight;
	private java.lang.String channel;
	private java.lang.Integer displayOrder;
	private java.sql.Timestamp createTime;

	//default constructor
	public ChannelHotCompany() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.lang.String getLink() {
		return link;
	}
	public java.lang.String getText() {
		return text;
	}
	public java.lang.String getLocked() {
		return locked;
	}
	public java.lang.String getHighlight() {
		return highlight;
	}
	public java.lang.String getChannel() {
		return channel;
	}
	public java.lang.Integer getDisplayOrder() {
		return displayOrder;
	}
	public java.sql.Timestamp getCreateTime() {
		return createTime;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setLink(java.lang.String link) {
		this.link = link;
	}
	public void setText(java.lang.String text) {
		this.text = text;
	}
	public void setLocked(java.lang.String locked) {
		this.locked = locked;
	}
	public void setHighlight(java.lang.String highlight) {
		this.highlight = highlight;
	}
	public void setChannel(java.lang.String channel) {
		this.channel = channel;
	}
	public void setDisplayOrder(java.lang.Integer displayOrder) {
		this.displayOrder = displayOrder;
	}
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof ChannelHotCompany))
			return false;

		final ChannelHotCompany channelHotCompany = (ChannelHotCompany)other;
		if (!this.id.equals(channelHotCompany.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("ChannelHotCompany[")
			.append("id=").append(id).append(", ")
			.append("link=").append(link).append(", ")
			.append("text=").append(text).append(", ")
			.append("locked=").append(locked).append(", ")
			.append("highlight=").append(highlight).append(", ")
			.append("channel=").append(channel).append(", ")
			.append("displayOrder=").append(displayOrder).append(", ")
			.append("createTime=").append(createTime).append("]").toString();
	}
}